import { tokenRequest } from "../utils/request";

export function getDynamic(page, pageSize) {
    return tokenRequest({
        url: 'dynamic/list',
        method: 'GET',
        param: {
            page,
            page_size: pageSize
        },
        header: {
            'Content-type': 'application/x-www-form-urlencoded'
        }
    })
}

export function submitDynamic(awardId, article, background) {
    return tokenRequest({
        url: 'dynamic/item',
        method: 'POST',
        param: {
            awardId,
            article,
            background,
        },
        header: {
            'Content-type': 'application/x-www-form-urlencoded'
        }

    })
}